package yunjiao.designpatterns.builder;


import lombok.extern.slf4j.Slf4j;

/**
 * 入口
 *
 * @author yangyunjiao
 */
@Slf4j
public class App {
    public static void main(String[] args) {
        User user = UserStepBuilder.newBuilder().firstName("zhang").lastName("san").age(20).build();
        log.info("{}",user);

        User user1 = UserClassicBuilder.newBuilder("zhang", "san").age(20).build();
        log.info("{}",user1);
    }
}
